<template>
	<view >
		<view class="content f-26">
			<view class="f-26 f-s">基础信息</view>
			<view class="batch_no">名称：{{list.name}}</view>
			<view class="batch_no">批次编号：{{list.batch_no}}</view>
		</view>
		<view class="content f-26 ">
			<view class="dis-flex ">
				<view class="flex-box-2">款号</view>
				<view class="flex-box">颜色</view>
				<view class="flex-box">类别</view>
			</view>
			<view class="dis-flex batch_no" v-for="item in list.style" :key="item.style_id" @click="jump(item.style_id)">
				<view class="flex-box-2 styleItem">{{item.article_no}}</view>
				<view class="flex-box styleItem">{{item.color }}</view>
				<view class="flex-box styleItem">
					<text v-if="item.styletype">{{item.styletype.name}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
			}
		},
		onLoad(options) {
			console.log(options,"20210428")
			this.$u.api.getScoreSetting({
				"batch_no": options.batch_no ? options.batch_no : '' 
			}).then(res => {
				this.list = res.data;
			})
		},
		methods: {
			jump(id){
				this.$u.route('/pages/index/edit', {
					id,
				});
			},
		}
	}
</script>

<style scoped>
.content{
	margin: 30rpx 24rpx;
	background: white;
	padding: 30rpx 24rpx;
	border-radius: 8rpx;
}
.batch_no{
	margin-top: 30rpx;
}
.styleItem{
	color: rgb(90 136 251);
	padding: 10rpx 0;
}
.flex-box-2{
	flex: 2;
}

</style>
